import request from '@/utils/request'

// 查询联盟企业信息列表
export function listCompanies(query) {
  return request({
    url: '/union/companies/list',
    method: 'get',
    params: query
  })
}

// 查询联盟企业信息详细
export function getCompanies(id) {
  return request({
    url: '/union/companies/' + id,
    method: 'get'
  })
}

// 新增联盟企业信息
export function addCompanies(data) {
  return request({
    url: '/union/companies',
    method: 'post',
    data: data
  })
}

// 修改联盟企业信息
export function updateCompanies(data) {
  return request({
    url: '/union/companies',
    method: 'put',
    data: data
  })
}

// 删除联盟企业信息
export function delCompanies(id) {
  return request({
    url: '/union/companies/' + id,
    method: 'delete'
  })
}

// 导出联盟企业信息
export function exportCompanies(query) {
  return request({
    url: '/union/companies/export',
    method: 'get',
    params: query
  })
}
